package com.ioe.p2p;

import com.ioe.p2p.service.MsgDeal;

import java.net.DatagramSocket;
import java.net.SocketException;

public class P2PServer {

    public static void main(String[] args) throws SocketException {
        try (DatagramSocket ds = new DatagramSocket(8000)) {
            for(;;){
                MsgDeal.getMsgDeal().init(ds);
            }
        }
    }


}
